// 活动相关
import {
	request
} from "../utils/request"

export default {

	// 活动详情
	activity: (activityId) => {
		return request({
			url: `/amianfrontend/activity/${activityId}`
		})
	},

	// 活动列表
	activityList: (data) => {
		return request({
			// url: `/amianfrontend/activity/list?pageSize=${pageSize}&pageNum=${pageNum}`,
			url: `/amianfrontend/activity/list`,
			data: data
		})
	},

	// 提交报名
	orderJoin: (data) => {
		return request({
			url: `/amianfrontend/order/join`,
			method: 'POST',
			data
		})
	},

	// 填写活动任务表单
	setActivityFillForm: (activityId, utilItemId, data) => {
		return request({
			url: `/amianfrontend/activity/fillForm/${activityId}/${utilItemId}`,
			method: 'POST',
			data
		})
	},

	// 根据订单号完成订单支付
	orderPay: (orderNo) => {
		return request({
			url: `/amianfrontend/order/pay/${orderNo}`
		})
	},

	// 订单支付查询
	orderQuery: (orderNo) => {
		return request({
			url: `/amianfrontend/order/query/${orderNo}`
		})
	},

	// 活动类别
	categoryList: () => {
		return request({
			url: `/amianfrontend/category/list`
		})
	}
}
